export default {
    // 邮箱验证规则
    emailValidator:[
        {
            // pattern:/^([a-zA-Z]|[0-9])(\w|\-)+@[a-zA-Z0-9]+\.([a-zA-Z]{2,4})$/,
            pattern:/^[\w._%+-]+@[\w.-]+\.[a-zA-Z]{2,}$/,
            message:"请输入正确邮箱的格式",
            trigger:"blur"
        }
    ],
    // 手机号码验证
    phoneValidator:[
        {
            pattern: /^((1[3456789]\d{9})|(0\d{2,3}-?\d{7,8}))$/,
            message: "请输入正确格式的手机号码",
            trigger: "blur"
        }
    ],
    // oa平台密码规则验证
    oaPasswordValidator:[
        {
            pattern:new RegExp("((?\u003d.*\\d)(?\u003d.*\\D)|(?\u003d.*[a-zA-Z])(?\u003d.*[^a-zA-Z]))^.{6,16}$"),
            message:"密码必须是6-16位数字、字符组合（不能是纯数字）",
            trigger:"blur"
        }
    ],
    // 身份证验证规则
    idCardValidator:[
        {
            pattern:/^\d{6}(18|19|20)?\d{2}(0[1-9]|1[012])(0[1-9]|[12]\d|3[01])\d{3}(\d|X|x)$/,
            message:"请输入正确的身份证号码",
            trigger:"blur"
        }
    ],
    // 薪酬密码验证规则
    salaryPasswordValidator:[
        {
            pattern:/((?=.*\\d)(?=.*\\D)|(?=.*[a-zA-Z])(?=.*[^a-zA-Z]))^.{8,}$/,
            message:"8-16位字符，包含英文字母、数字及特殊字符",
            trigger:"blur"
        }
    ]
}
